package java67_17;

public class Person {
	private String name;
	private int age;
	private float height;
	// final的属性,对一个对象来说,必须在初始化(对象构建)的时候赋值
	private final String sex;

	public Person() {
		sex = "男";
	}

	public Person(String n, String s) {
		name = n;
		sex = s;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public float getHeight() {
		return height;
	}

	public void setHeight(float height) {
		this.height = height;
	}

	public String getSex() {
		return sex;
	}

//public void setSex(String s) {
//		sex = s;
//	}
}
